import instance from './request.js'

// 请求历史记录和热门搜索 get请求不带参规范写法
export const getHishotData = () => instance.get('search/index')

// 根据关键字搜素提示 get请求带参规范写法
export const searchTips = params => instance.get('/search/helper', { params } )

// 关键字搜索商品
export const searchGoods = params => instance.get('/goods/list', { params } )

// 清楚历史记录
export const clearHistory = () => instance.post('/search/clearhistory')